package cn.wolfcode.ssm.domain;

import lombok.Data;
import org.omg.CORBA.PRIVATE_MEMBER;

import java.util.ArrayList;
import java.util.List;

@Data
public class Employee {
    private Long id;
    private String name;
    private String password;
    private String email;
    private Integer age;
    private boolean admin;//只有两种状态,是或否,所以用基本类型

    private boolean status=true;

   // private Long deptId;
    //关联属性,封装部门的id和名称
    private Department dept;

    //关联属性,封装角色信息
    private List<Role> roles=new ArrayList<>();
    
}